﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml;
using System.IO;
using WSPDocumentBuilder_WPF.Managers;

namespace WSPDocumentBuilder_WPF.BLL
{
    public class DocInfoXslPathUrlResolver : XmlUrlResolver
    {
        public override Uri ResolveUri(Uri baseUri, string relativeUri)
        {
            //return base.ResolveUri(baseUri, relativeUri);
            string xslFile = Path.GetFileName(relativeUri);
            return new Uri(LocationManager.XslPath + @"\" + xslFile, UriKind.RelativeOrAbsolute);
        }
    }
}
